package com.boot.test.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.boot.core.db.DbManager;
import com.boot.core.model.SecUser;

@Service
public class DemoService {
	public void test(){
		List<SecUser> list = DbManager.queryForListBean("SELECT * FROM sec_user WHERE userId=?", SecUser.class, 1);
		for(SecUser u:list) {
			System.out.println(u.getUsername());
		}
	}
}
